package com.rfsp.common.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "SmsFeign", url = "http://out.crcrfsp.com/rfsp_msg")
public interface SmsFeign {
    
    /**
     * 直接发送短信
     * @param phoneNumber 手机号
     * @param msgContent 短信内容
     * @return
     */
    @PostMapping("/sendMsg")
    public String sendMsg(@RequestParam("phoneNumber")String phoneNumber, @RequestParam("msgContent")String msgContent);
    
    /**
     * 直接发送短信
     * @param phoneNumber 手机号
     * @param msgContent 短信内容
     * @param SerialNumber 流水,一般为业务编号
     * @return
     */
    @PostMapping("/sendMsgRfpAndRfsp")
	public String sendMsgRfpAndRfsp(@RequestParam("phoneNumber")String phoneNumber, @RequestParam("msgContent")String msgContent, @RequestParam("SerialNumber")String SerialNumber);
    
    /**
     * 短信回执
     * @return
     */
    @PostMapping("/getReport")
    public String getReport() ;

}
